package com.hj.javaweb.event;

import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * @Author : hujing
 * @Date: 2025/6/20 15:15
 * @Description:事件监听器
 */
@Component
public class CustomEventListener {
    
    @EventListener
    public void handleCustomEvent(CustomEvent customEvent){
        System.out.println("receive message: " + customEvent.getMessage());
    }
}
